import {Request, Response} from "express";

export default {
  "POST /api/interfaceInfo/list/page/vo": async (req: Request, res: Response) => {
    res.send(
      {
        code: 0,
        message: 'ok',
        data: {
          records: [
            {
              id: "1834787145190584322",
              name: "GetUserName",
              description: "获取用户名",
              url: "http://localhost:8123/api/name/user",
              requestParams: "{\"name\": \"String\"}",
              requestHeader: "{\"Authorization\": \"Bearer token\"}",
              responseHeader: "{\"Content-Type\": \"application/json\"}",
              status: 1,
              method: "POST",
              userId: "1834782677128556546",
              isDelete: 0,
              createTime: "2024-09-14 10:51:58",
              updateTime: "2024-09-14 11:26:31"
            }, {
              id: "40",
              name: "获取平台状态",
              description: "获取API平台的当前状态信息",
              url: "/api/v1/status",
              requestParams: null,
              requestHeader: null,
              responseHeader: "{\"Content-Type\": \"application/json\"}",
              status: 1,
              method: "GET",
              userId: "1834782677128556546",
              isDelete: 0,
              createTime: "2024-09-14 10:51:58",
              updateTime: "2024-09-14 11:26:31"
            }
          ],
          total: 2
        },
      }
    );
  }
}
